package com.example.springbootmybatisdemo.dao;

import com.example.springbootmybatisdemo.model.ShiroRole;

import java.util.List;

public interface ShiroRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShiroRole record);

    int insertSelective(ShiroRole record);

    ShiroRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShiroRole record);

    int updateByPrimaryKey(ShiroRole record);

    // 根据用户id查询角色
    List<ShiroRole> list(Long UserId);
}